package com.example.yk2021xm04.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.yk2021xm04.pojo.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZengQi
 * @since 2021-11-26
 */
public interface ProjectMapper extends BaseMapper<Project> {

    IPage<Project> findProjectByPage(IPage<Project> page, Integer userId,@Param(Constants.WRAPPER)QueryWrapper<Project> wrapper);

    List<Object> createTimeByDay();

    List<Object> createCountByDay();

    Integer ProjectCountInDay();
}
